@extends('layout')

@section('title', '取货码验证')

@section('content')
<body>
<div class="login" id="relatives">
    <form action="/pickupcode" method="post">
        {{ csrf_field() }}
    <img src="img/top.jpg" class="_img_w100" >
    <div class="_box_4">
        <div class="c999">输入取货码</div>
        <div class="_ipt_2">
            <input type="text" id="account" placeholder="请输入取货验证码" name="code" />
        </div>
        <div class="c999">输入右侧验证码</div>
        <div class="_ipt_2" id="y2">
            <input type="text" id="password" placeholder="请输入图形验证码" name="captcha" class="{{$errors->has('captcha')?'parsley-error':''}}" /><img src="{{captcha_src()}}" class="_img_w100" onclick="this.src='{{captcha_src()}}'+Math.random()" />
        </div>
    </div>

    <div class="_btn_c_1">
        <button  type="submit" class="_btn_1" id="submit">立即验证</button>
    </div>
        @if($errors->has('captcha') or $errors->has('code'))
            <div class="_text_error_1" id="err_msg">{{$errors->first()}}</div>
        @endif

        @if(!$status)
            <div class="_text_error_1" id="err_msg">未查询到该取货码：{{$code}}</div>
        @endif
    </form>
</div>
</body>
@endsection